package com.huopaolan.yohuoshop.Di.Modules;

import com.huopaolan.yohuoshop.Mvp.Contract.CommodityDetaContract;
import com.huopaolan.yohuoshop.Mvp.Model.CommodityDetaModel;

import javax.inject.Inject;

import dagger.Module;
import dagger.Provides;

@Module
public class CommodityDetaModules {
    private CommodityDetaContract.CommodityDetaIView iView;

    @Inject
    public CommodityDetaModules(CommodityDetaContract.CommodityDetaIView iView) {
        this.iView = iView;
    }

    @Provides
    public CommodityDetaContract.CommodityDetaIView providerIView() {
        return iView;
    }

    @Provides
    public CommodityDetaContract.CommodityDetaIModel providerIModel() {
        return new CommodityDetaModel();
    }
}
